package com.yanqu.road.utils.redis;

import redis.clients.jedis.Jedis;
import redis.clients.jedis.Transaction;

public interface IRedisLogic<T>  {
    /**
     * 执行
     * @param transaction
     * @return
     */
    T execute(Transaction transaction);

    /**
     * 获取数据
     *
     * @param jedis
     */
    void getDataFromJedis(Jedis jedis);
}
